<p-dialog header="请选择人员" [(visible)]="display" modal="modal" width="1100" [responsive]="true" (onHide)="cancel()">
  <div class="ui-g">
    <div class="ui-g-4">
      <h4>组织</h4>
      <p-tree [value]="orgs" selectionMode="single" [(selection)]="selected" (onNodeExpand)="nodeExpand($event)"(onNodeSelect) = "NodeSelect($event)" [contextMenu]="cm"></p-tree>
      <p-contextMenu #cm [model]="items"></p-contextMenu>
    </div>
    <div class="ui-g-8">
      <h4>{{ titleName }}</h4>
      <div class="ui-grid-row text_aligin_right">
        <p-dataTable [value]="tableDatas"
                     (onRowSelect)="handleRowSelect($event)"
                     [responsive]="true"  id="manageTable">
          <p-column selectionMode="single" [style]="{'width':'38px'}" ></p-column>
          <p-column field="pid" header="帐号" [sortable]="true"></p-column>
          <p-column field="name" header="姓名" [sortable]="true"></p-column>
          <p-column field="mobile" header="手机" [sortable]="true"></p-column>
          <p-column field="organization" header="组织" [sortable]="true"></p-column>
          <p-column field="pid" header="职位" [sortable]="true"></p-column>
          <ng-template pTemplate="emptymessage">
            当前没有数据
          </ng-template>
        </p-dataTable>
      </div>
    </div>
  </div>
  <p-footer>
    <button type="button" pButton icon="fa-check" (click)="sure()" label="确定"></button>
    <button type="button" pButton icon="fa-close" (click)="cancel()" label="取消"></button>
  </p-footer>
</p-dialog>
